package com.yct.springcloud.service;


import com.yct.springcloud.support.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value = "CLOUD-PAYMENT-SERVICE")
public interface IPaymentService {

    /**
     * 根据ID查询支付数据
     *
     * @param id
     * @return
     */
    @GetMapping(value = "/yct/payment/get/{id}")
    CommonResult getPaymentById(@PathVariable("id") Long id);
    /**
     * 测试延时返回
     * @return
     */
    @GetMapping(value = "/yct/payment/feign/timeout")
    CommonResult feignTimeout();

}
